Finding All Periods and Initial Palindromes of a String in Parallel 1
نویسندگان
چکیده
An optimal O(log log n) time CRCW-PRAM algorithm for computing all period lengths of a string is presented. Previous parallel algorithms compute the period only if it is shorter than half of the length of the string. The algorithm can be used to nd all initial palindromes of a string in the same time and processor bounds. Both algorithms are the fastest possible over a general alphabet. We derive a lower bound for nding initial palindromes by modifying a known lower bound for nding the period length of a string [9]. When p processors are available the bounds become (dnpe+log logd1+p=ne 2p).
منابع مشابه
Optimal Parallel Algorithms for Periods, Palindromes and Squares (Extended Abstract)
of results Optimal concurrent-read concurrent-write parallel algorithms for two problems are presented: Finding all the periods of a string. The period of a string can be computed by previous eecient parallel algorithms only if it is shorter than half of the length of the string. Our new algorithm computes all the periods in optimal O(loglog n) time, even if they are longer. The algorithm can b...
متن کاملLooking for All Palindromes in a String
A palindrome is a string of the form αα', where α and α' are also strings and reverse to each other. The problem of the paper is defined as follows: given a string S of length n, find all palindromes occurring in the given string S. In the paper, we present an algorithm based on suffix trees to find palindromes. Our algorithm will find all maximum palindromes which are not contained in any othe...
متن کاملThe history of finding palindromes
This paper describes the history of finding palindromes in computer science. The problem of determining whether or not a string is a palindrome is one of the oldest computer science problems, and algorithms for this problem have been constructed since the early years of computer science. This paper describes the contributions to solving algorithmic problems related to finding palindromes and va...
متن کاملFinding All Approximate Gapped Palindromes
We study the problem of finding all maximal approximate gapped palindromes in a string. More specifically, given a string S of length n, a parameter q ≥ 0 and a threshold k > 0, the problem is to identify all substrings in S of the form uvw such that (1) the Levenshtein distance between u and w is at most k, where w is the reverse of w and (2) v is a string of length q. The best previous work r...
متن کاملParallel Detection of all Palindromes in a String
Zvi Calil' Columbia University and Tel-Aviv University This paper prespnts two ",flit-iE-lit concnrrf:'nt-read cone-uTfPnt-writE' parallel algorithms that find all palindromE's in a givPlI string: J. An ()(Io~ n) timf', n-[ITOCE'Ssor alp;orithm over general alphahets. In case of can· stant size alphahpts til(> <llgol'ithm fPquirps only lI.Jlogn processors, and thus achievps <til oplimal.spepdnp...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1995